import request from "@/utils/request";

export function getReward() {
    return request.get('reward_punish/reward')
}

export function getPunished() {
    return request.get('reward_punish/punish')
}

export function getClasses() {
    return request.get('reward_punish/classes')
}

export function modifyInfo(id,time,description){
    const data = {
        id:id,
        time:time,
        description:description
    }
    return request.put('reward_punish/update',data)
}

export function deleteInfo(id){
    const url = `reward_punish/delete?id=${id}`;
    return request.delete(url)
}
